package com.tengju.user.domain.model.login;

import lombok.Value;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author wuziyang
 */
@Value
public class JwtToken implements AuthenticationToken {

    private String token;

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
